<?php if ($all_rows > 0) : ?>
    <table class="table">
        <tbody>
        <?php $month = ''; ?>
        <?php foreach($depositList->result() as $key=>$value) : ?>
            <tr>
                <td class="time-month">
                    <?php if ($value->month != $month) : ?>
                        <div class="user-month">
                            <?php $month = $value->month; ?>
                            <h6><?php echo strstr($month, '-', TRUE); ?></h6>
                            <p><?php echo ltrim(strstr($month, '-'), '-'); ?></p>
                        </div>
                    <?php endif; ?>
                </td>
                <td class="time-id">
                    <h6>充值单号</h6>
                    <p><?php echo $value->deposit_id;?></p>
                </td>
                <td class="time-name">
                    <h6>商品名称</h6>
                    <p>预充值</p>
                </td>
                <td class="time-id">
                    <h6>充值金额</h6>
                    <p><?php echo $value->amount;?></p>
                </td>
                <td class="time-date">
                    <h6>充值时间</h6>
                    <p><?php echo $value->created_at;?></p>
                </td>
                <td class="time-user">
                    <h6>状态</h6>
                    <p><?php echo ($value->state == 2) ? '充值成功' : '充值失败';?></p>
                </td>
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
    <?php $this->load->view('layout/pagination'); ?>
<?php else: ?>
    <div class="no-data">
        <img src="ucenter/images/panda.jpg"/>
        <p>没有搜索到结果</p>
    </div>
<?php endif; ?>